
package guoan.repository;

import java.util.List;

import guoan.domain.AdvType;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AdvTypeRepository extends
        PagingAndSortingRepository<AdvType, Long>,
        JpaSpecificationExecutor<AdvType> {

    AdvType findByAdvTypeKey(String advTypeKey);

    List<AdvType> findByShowingOrderByOrderIdDesc(long l);

}
